<?php

class PushController extends Common {

    public function __construct() {
        parent::__construct();
        $this->load->model('device');
    }

    /**
     * 发布广告
     */
    public function createAdAction()
    {
        $uid = $this->get('uid')?:0;
        if(empty($uid)){echo '参数有误';}
        $model = $this->model('withdraw');
        $data = $model->getAll('uid=?',$uid,'*','id desc');  //用户资金流水记录
        $this->view->assign(array(
            'data' => $data,
        )); //assign()对视图变量完成赋值
        $this->view->display('/admin/push/ubalance_list');  //这里是对视图文件的加载
    }


}
